<?php 
/* SVN FILE: $Id$ */
/* Previsione Test cases generated on: 2009-12-06 00:12:21 : 1260073821*/
App::import('Model', 'Previsione');

class PrevisioneTestCase extends CakeTestCase {
	var $Previsione = null;
	var $fixtures = array('app.previsione', 'app.persona');

	function startTest() {
		$this->Previsione =& ClassRegistry::init('Previsione');
	}

	function testPrevisioneInstance() {
		$this->assertTrue(is_a($this->Previsione, 'Previsione'));
	}

	function testPrevisioneFind() {
		$this->Previsione->recursive = -1;
		$results = $this->Previsione->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Previsione' => array(
			'id'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'estado'  => 'Lorem ipsum dolor sit ame'
		));
		$this->assertEqual($results, $expected);
	}
}
?>